isOpen(void)
void open(name, // string; disk file // to open mode) // string; mode to use for // open
void reopen(mode) // string; mode to use for // file open
void close(void)
result // boolean; true or false eof(void)
void rewind(void)
result // string; file name name(void)
These commands are illegal when the file is opened in Binary mode.
result // integer; number of bytes // written to file write(item1[,itemN]) // data type; one or more // variables or // constants
result // string; text line from // file read(void)
result // number; a floating-point // value readNumber(void)
In Binary mode, three numeric values of size double will be read and returned as a vector.
result // vector; the vector as it // appears in the file readVector(void)
This function is illegal in Binary mode.
result // string[]; array of // character strings // representing // tokens parse(token) // string; a character // string of tokens // separators
void nl(void)
result // integer; line or byte // count of file linecount(void)
This command is illegal in Binary mode.
result // integer; current line // number when // optional parameter // is omitted line([linenumber]) // integer; the line number // to which the file // should be // positioned
result // integer; an integer // value from the file readInt(void)
result // integer; single byte // from the file readByte(void)
result // integer; number of bytes // written to file writeNumber(value) // number; floating-point // value
result // integer; number of bytes // written to file writeInt(value) // integer; the value to be // written
result // integer; number of bytes // written to file writeByte(value) // integer; the value to be // written
result // integer; current offset // in file offset([value // integer; offset to be // used [,method]]) // constant; FROMSTART, // FROMEND or FROMHEREPlease refer to the numerous example LScripts supplied with LightWave 3D for further examples of using the LScript File Object Agent.